package br.com.buscapecas.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;


/**
 * @author Maikon Rafael da Rocha
 * @since 13/05/2011 09:39:52
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface ColumnInformation {

    String columnName() default "";
    AttributeType type() default AttributeType.BEANCLASS;
    String transferColumnName() default "";
    boolean nullable() default true;
    int charLength() default -1;
    int integerDigits() default -1;
    int decinalDigits() default -1;
    
    public enum AttributeType {
        INTEGER,
        DECIMAL,
        TIMESTAMP,
        DATE,
        CHAR,
        VARCHAR,
        BOOLEAN,
        LONG,
        ENUM,
        BEANCLASS
    }
    
}
